using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

//玩法结束的按钮，这里还需要加一个弹窗 二次确认玩法中退出  
// 废弃
public class GameClose : MonoBehaviour
{
    // Start is called before the first frame update
    public GameObject doubleCheck;
    void Start()
    {
        //对按钮添加一个监控事件，当点击按钮时执行OnClick方法
        this.GetComponent<Button>().onClick.AddListener(OnClick);


    }

    // Update is called once per frame
    void OnClick()
    {
       //跳转场景
        UnityEngine.SceneManagement.SceneManager.LoadScene("Start");
    }
}
